package itheima.com.Day18;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Scanner;

public class MyLog4j {
    private static final Logger LOGGER = LoggerFactory.getLogger(MyLog4j.class);
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String number = sc.nextLine();

        try {
            int result = Integer.parseInt(number);
//            System.out.println("类型转化成功" + result);
        LOGGER.info("类型转化成功" + result);
        } catch (NumberFormatException e) {
            System.out.println("类型转换失败，请重新输入");
            LOGGER.info("类型转换失败，请重新输入");
        }

    }
}
